package com.bcxj.servicemap.controller;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.servicemap.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: DistrictController
 * Package: com.bcxj.servicemap.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/10/11 23:20
 * @Version 1.0
 * @Since 1.0
 */
@RestController
public class DistrictController {

    @Autowired
    private DistrictService districtService;

    @GetMapping("/dic-district")
    public ResponseResult initDicDistrict(String keyword){
        return districtService.getDistrict(keyword);
    }

}
